package factories

import (
	"gitee.com/sweetsunnyflower/carpooling-server-go/app/models/fuel_type"
	"github.com/bxcodec/faker/v3"
)

func MakeFuelTypes(count int) []fuel_type.FuelType {

	fuels := []string{
		"汽油",
		"纯电动",
		"油电混动",
		"气体燃料",
		"甲醇燃料",
		"油气混动",
	}

	var objs []fuel_type.FuelType

	// 设置唯一性，如 FuelType 模型的某个字段需要唯一，即可取消注释
	faker.SetGenerateUniqueValues(true)

	for i := 0; i < len(fuels); i++ {
		fuelTypeModel := fuel_type.FuelType{
			Name: fuels[i],
		}
		objs = append(objs, fuelTypeModel)
	}

	return objs
}
